package com.zxx.order.service

import com.zxx.order.service.bean.Order
import rx.Observable

/**
 * 订单业务 接口
 * wc
 * @author zqq on 2019/6/29.
 */
interface OrderService {

    //根据ID查询订单
    fun getOrderById(orderId: Int): Observable<Order>

    //提交订单
    fun submitOrder(order: Order): Observable<Boolean>

    //根据状态查询订单列表
    fun getOrderList(orderStatus: Int): Observable<MutableList<Order>?>


    //取消订单
    fun cancelOrder(orderId: Int): Observable<Boolean>


    //确认订单
    fun confirmOrder(orderId: Int): Observable<Boolean>


}

